.fx-input {
  box-sizing: border-box;
  display: inline-flex;
  transition: all 0.3s;
  position: relative;

  &.large {
    height: $height-large;

    > input {
      padding-right: $height-large;
      padding-left: $height-large;
      line-height: calc(#{$height-large} - 2px);

      &.round {
        border-radius: calc(#{$height-large} / 2);
      }
    }

    > .suffix-icon, > .prefix-icon {
      width: calc(#{$height-large} - 2px);
      height: calc(#{$height-large} - 2px);
      line-height: calc(#{$height-large} - 2px);
    }
  }

  &.middle {
    height: $height-middle;

    > input {
      padding-right: $height-middle;
      padding-left: $height-middle;
      line-height: calc(#{$height-middle} - 2px);

      &.round {
        border-radius: calc(#{$height-middle} / 2);
      }
    }

    > .suffix-icon, > .prefix-icon {
      width: calc(#{$height-middle} - 2px);
      height: calc(#{$height-middle} - 2px);
      line-height: calc(#{$height-middle} - 2px);
    }
  }

  &.default {
    height: $height-default;

    > input {
      padding-right: $height-default;
      padding-left: $height-default;
      line-height: calc(#{$height-default} - 2px);

      &.round {
        border-radius: calc(#{$height-default} / 2);
      }
    }

    > .suffix-icon, > .prefix-icon {
      width: calc(#{$height-default} - 2px);
      height: calc(#{$height-default} - 2px);
      line-height: calc(#{$height-default} - 2px);
    }
  }

  &.mini {
    height: $height-mini;

    > input {
      padding-right: $height-mini;
      padding-left: $height-mini;
      line-height: calc(#{$height-mini} - 2px);

      &.round {
        border-radius: calc(#{$height-mini} / 2);
      }
    }

    > .suffix-icon, > .prefix-icon {
      width: calc(#{$height-mini} - 2px);
      height: calc(#{$height-mini} - 2px);
      line-height: calc(#{$height-mini} - 2px);
    }
  }

  > input {
    box-sizing: border-box;
    width: $input-width-default;
    height: 100%;
    outline: none;
    border: 1px solid $border-color-secondary;
    border-radius: $border-radius;
    background-color: $input-background;
    color: $font-color-default;

    &:hover {
      border-color: $border-color-important;
    }

    &:focus {
      border: 1px solid $input-focus-border-color;
    }

    &.prefix {
      padding-left: 10px;
    }

    &.suffix {
      padding-right: 10px;
    }

    &:disabled {
      background-color: $input-disabled-background;
      cursor: not-allowed;
    }
  }

  > .suffix-icon, > .prefix-icon {
    user-select: none;
    cursor: pointer;
    text-align: center;
    position: absolute;
    top: 1px;
    color: $font-color-lowest;

    > .icon-open-eyes, > .icon-multiply_circle {
      &:hover {
        color: $font-color-secondary;
      }
    }
  }

  > .suffix-icon {
    right: 0;
  }

  > .prefix-icon {
    left: 0;
  }

  > .textarea {
    > textarea {
      width: 400px;
      height: 100%;
      line-height: 1.5;
      box-sizing: border-box;
      padding: 5px 15px;
      border: 1px solid $border-color-secondary;
      border-radius: $border-radius;
      resize: vertical;
      outline: none;
      background-color: $input-background;

      &:hover {
        border-color: $border-color-important;
      }

      &:focus {
        border: 1px solid $input-focus-border-color;
      }

      &::-webkit-input-placeholder {
        color: #abb4c3;
      }
    }
  }
}
